package com.enfi.api.modules.bz.controller;

import com.enfi.api.modules.bz.service.FileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author wind
 * @date 2020/3/12
 */
@Controller
@RequestMapping("pdf")
public class PdfController {
    @Autowired
    private FileService fileService;

    @RequestMapping("water/{fileName}")
    public void water(@PathVariable String fileName, HttpServletRequest request, HttpServletResponse response) {
        fileService.waterShow(fileName, request, response);
    }
}
